//根据QueryString参数名称获取值
function getQueryStringByName(name) {
    var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
    if (result == null || result.length < 1) {
        return "";
    }
    return result[1];
}
function GetValue(item) {

    var source = getQueryStringByName("source");
    if (item != "") {
        location.href = "./ball.html?rolename=" + item;
    }
}
$(function () {
    $(".enter-list-item").click(function () {
        var attr = $(this).find('.enter-list-item-two').attr("rolename");
        //GetValue(attr);
        window.setTimeout('GetValue("' + attr + '")', 1000);
    })
})
